/<template>
  <div>
    <p>首页</p>
    <button @click="toSearch">搜索</button>
    <button @click="toGoods">商品列表</button>
    <button @click="toGoodsDetail">商品详情</button>
  </div>
</template>

<script>
export default {
  methods:{
    toSearch(){
      this.$router.push('/search')
    },
    toGoods(){
      this.$router.push('/goods')
    },
    toGoodsDetail(){
      this.$router.push('/goodsDetail')
    }
  }
}
</script>

<style>

</style>